package com.jiwei.system.service;

import com.jiwei.system.pojo.Book;
import com.jiwei.system.pojo.Borrow;
import com.jiwei.system.pojo.Things;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemService {
    /**
     * 包含图书和物品
     * @param account
     * @return
     */
    List<Borrow> getMemberSelfBorrowingItemList(String account);

    List<Things> getThingList(int page, int limit);

    List<Book> getBookList(int page, int limit);

    void borrowThing(Borrow borrow);

    void returnThing(Borrow borrow);

    void borrowBook(Borrow borrow);

    void returnBook(Borrow borrow);

    List<Borrow> getBorrowHistoryList(int page, int limit);

    void addNewThing(Things things);

    void addNewBook(Book book);

    void modifyThing(Things things);

    void modifyBook(Book book);
}
